package com.zealcomm.ivcscustomer.service

import android.os.Bundle
import android.view.View
import com.zco.util.listener.CustomOnClickListener
import com.zealcomm.commonui.base.BaseFragment2
import com.zealcomm.ivcscustomer.R
import com.zealcomm.ivcscustomer.databinding.FragmentServiceTypeChoiceBinding
import com.zealcomm.utils.bindView

/**
 * 选择服务方式 呼叫客服 或 填写资料
 */
class ServiceTypeChoiceFragment : BaseFragment2(R.layout.fragment_service_type_choice) {

    private val binding: FragmentServiceTypeChoiceBinding by bindView()

    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
        super.onViewCreated(view, savedInstanceState)
        binding?.ivServiceTypeCustomer?.setOnClickListener(object : CustomOnClickListener<Any>() {
            override fun onCustomClick(view: View?) {
                (holdingActivity as MainActivity).showServiceList()
            }
        })
        binding?.ivServiceSubmitInfo?.setOnClickListener(object : CustomOnClickListener<Any>() {
            override fun onCustomClick(view: View?) {
                (holdingActivity as MainActivity)?.showSubmitBaseInfo()
            }
        })
    }
}